<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>MARRIAGE</title>
    <script>
        addEventListener("load", function () {
            setTimeout(hideURLbar, 0);
        }, false);

        function hideURLbar() {
            window.scrollTo(0, 1);
        }
    </script>

<link href="//fonts.googleapis.com/css?family=Muli:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<link rel="stylesheet" href="/static/css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="/static/css/style.css"  type="text/css">
<link rel="stylesheet" href="/static/css/css_slider.css" type="text/css">
<link rel="stylesheet" href="/static/css/font-awesome.min.css" type="text/css">

</head>
<body>

<!-- header -->
<header>
    <div class="top-head container">
        <div class="ml-auto text-right right-p">
            <ul>
                <li class="mr-3">
                    <span class="fa fa-phone"></span>+1(21) 234 4567</li>
                <li>
                    <span class="fa fa-envelope-open"></span> <a href="mailto:marriage@example.com">marriage@example.com</a> </li>
            </ul>
        </div>
    </div>
    <div class="container">
        <!-- nav -->
        <nav class="py-3 d-lg-flex">
            <div id="logo">
                <h1> <a href="#home"><span class="fa fa-gift"></span> MARRIAGE </a></h1>
            </div>
            <label for="drop" class="toggle"><span class="fa fa-bars"></span></label>
            <input type="checkbox" id="drop" />
            <ul class="menu ml-auto mt-1">
                <li class="active"><a href="#home">首页</a></li>
                <li class=""><a href="#about">爱情指导</a></li>
                <li class=""><a href="#services">相关服务</a></li>
                <li class=""><a href="#stats">数据统计</a></li>
                <li class=""><a href="#testi">客户评价</a></li>
            </ul>
        </nav>
        <!-- //nav -->
    </div>
</header>
<!-- //header -->


<!-- 横幅 -->
<div class="banner" id="home">
    <div class="layer">
        <div class="container">
            <div class="row">
                <div class="col-lg-7 banner-text-w3ls">
                    <!-- 横幅滑块-->
                    <div class="csslider infinity" id="slider1">
                        <input type="radio" name="slides" checked="checked" id="slides_1" />
                        <input type="radio" name="slides" id="slides_2" />
                        <input type="radio" name="slides" id="slides_3" />
                        <ul class="banner_slide_bg">
                            <li>
                                <div class="container-fluid">
                                    <div class="w3ls_banner_txt">
                                        <h3 class="b-w3ltxt text-capitalize mt-md-4">婚姻搜索.</h3>
                                        <h4 class="b-w3ltxt text-capitalize mt-md-2">最佳配对情侣</h4>
                                        <p class="w3ls_pvt-title my-3">onec consequat sapien ut leo cursus rhoncus. Nullam dui mi, vulputate ac metus semper Nullam dui mi.
                                            Vestibulum ante. Morbi at dui nisl.</p>
                                        <a href="#about" class="btn btn-banner my-3">阅读更多</a>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <!-- //banner slider-->
                </div>
                <div class="col-lg-5 col-md-8 px-lg-3 px-0">
                    <div class="banner-form-w3 ml-lg-5">
                        <div class="padding">
                            <form action="completeUserInformation" method="post">
                                <h5 class="mb-3">注册并加入我们</h5>
                                <div class="form-style-w3layout">
                                    <input placeholder="LoginName" name="loginName" id="loginName" type="text" required="" autocomplete="off"><br/>
                                    <span id="tips"></span>
                                    <input placeholder="LoginPassword" name="loginPassword" id="loginPassword" type="text" required="" autocomplete="off">
                                    <input placeholder="Your Email Id" name="userMail" id="userMail" type="email" required="" autocomplete="off"><br/>
                                    <a href="/users/toLogin">已有账户去登录</a>
                                    <button Class="btn" id="registerBtn"> 注册</button>
                                    <span>注册即表示您同意我们的 <a href="#">条款 & 条件</a></span>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- //banner -->

<!-- what we Serve -->
<section class="banner-bottom py-5" id="about">
    <div class="container py-lg-5">
        <h2 class="heading mb-sm-5 mb-4"> 爱情指导</h2>
        <div class="row bottom-grids">
            <div class="col-lg-3 col-sm-6">
                <div class="three-grids-w3pvt-1 d-flex text-right">
                    <div class="text-effect-wthree midd-text-w3ls p-3 w-100">
                        <h5 class="text-uppercase text-bl font-weight-bold">结婚</h5>
                        <p>婚姻</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-6">
                <div class="three-grids-w3pvt-2 d-flex text-right mt-sm-0 mt-4">
                    <div class="text-effect-wthree midd-text-w3ls p-3 w-100">
                        <h5 class="text-uppercase text-bl font-weight-bold">夫妻</h5>
                        <p>婚姻</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-6 mt-lg-0 mt-4">
                <div class="three-grids-w3pvt-3 d-flex text-right">
                    <div class="text-effect-wthree midd-text-w3ls p-3 w-100">
                        <h5 class="text-uppercase text-bl font-weight-bold">订婚</h5>
                        <p>婚姻</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-sm-6 mt-lg-0 mt-4">
                <div class="three-grids-w3pvt-4 d-flex text-right">
                    <div class="text-effect-wthree midd-text-w3ls p-3 w-100">
                        <h5 class="text-uppercase text-bl font-weight-bold">新娘</h5>
                        <p>婚姻</p>
                    </div>
                </div>
            </div>

            <div class="col-lg-5">
                <p class="mt-4">
                    &nbsp;&nbsp;&nbsp;&nbsp;什么样的夫妻最幸福?一句话，知道自已幸福的夫妻最幸福——身在福中而知福。最大的不幸是身在福中不知福，身在福中不知福的人，在别人看来再大的幸福他都看不见，因为他不知福，也就永远不幸福，至少不是最幸福;而最大的幸福是身在福中而知福，因为知福才能享福，知福才是有福人。
                </p>
            </div>
            <div class="col-lg-1 col-sm-3 col-5 ser-img">
                <span class="fa fa-image mt-4"></span>
                <span class="fa fa-handshake-o mt-4"></span>
            </div>
            <div class="col-lg-1 col-sm-3 col-5 ser-img">
                <span class="fa fa-hourglass mt-4"></span>
                <span class="fa fa-paw mt-4"></span>
            </div>
            <div class="col-lg-5">
                <p class="mt-4">
                    &nbsp;&nbsp;&nbsp;&nbsp;相爱是一门艺术，爱是两个人一起成长，这就必须得有交流，有交流才有了解，有了解才有更深的爱。交流必然会有争执的可能，但这不是坏事，暴露矛盾相比掩盖矛盾来说，最终更有利于婚姻和谐，沉默不是解决问题，而只是隐瞒和回避问题。
                </p>
            </div>
        </div>
    </div>
</section>
<!-- //what we Serve -->

<!-- 服务 -->
<section class="services py-5" id="services">
    <div class="container">
        <h3 class="heading mb-5">我们的服务</h3>
        <div class="row">
            <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12" id="toFindUserListPage">
                <div class="our-services-wrapper mb-60">
                    <div class="services-inner">
                        <div class="our-services-img">
                            <span class="fa fa-handshake-o"></span>
                        </div>
                        <div class="our-services-text">
                            <h4>结交好友</h4>
                            <p>可以添加好友、和他&她一起聊天</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12">
                <div class="our-services-wrapper mb-60">
                    <div class="services-inner">
                        <div class="our-services-img">
                            <span class="fa fa-image"></span>
                        </div>
                        <div class="our-services-text">
                            <h4>我的好友</h4>
                            <p>和好友进行聊天、熟悉彼此</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12">
                <div class="our-services-wrapper mb-60">
                    <div class="services-inner">
                        <div class="our-services-img">
                            <span class="fa fa-gavel"></span>
                        </div>
                        <div class="our-services-text">
                            <h4>我的收藏</h4>
                            <p>收藏的好友、活动、文章都在这里</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12" id="toLoveGuideListPage1">
                <div class="our-services-wrapper mb-60">
                    <div class="services-inner">
                        <div class="our-services-img">
                            <span class="fa fa-info-circle"></span>
                        </div>
                        <div class="our-services-text">
                            <h4>恋爱指导</h4>
                            <p>学习他人的恋爱经验</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12">
                <div class="our-services-wrapper mb-60">
                    <div class="services-inner">
                        <div class="our-services-img">
                            <span class="fa fa-hourglass"></span>
                        </div>
                        <div class="our-services-text">
                            <h4>分享动态</h4>
                            <p>分享自己的动态或查看他人的动态</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-4 col-lg-4 col-md-6 col-sm-12">
                <div class="our-services-wrapper mb-60">
                    <div class="services-inner">
                        <div class="our-services-img">
                            <span class="fa fa-paw"></span>
                        </div>
                        <div class="our-services-text">
                            <h4>主题活动</h4>
                            <p>参加恋爱主题活动、发现另一半</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- //services -->

<!-- 统计部分 -->
<section class="stats-section-w3pvt" id="stats">
    <div class="py-5">
        <div class="container py-lg-5">
            <h3 class="heading mb-sm-5 mb-4">数据统计</h3>
            <div class="row text-center">
                <div class="col-lg-3 col-6">
                    <div class="w3layouts_stats_left w3_counter_grid">
                        <div class="stats-icon">
                            <span class="fa fa-credit-card"></span>
                        </div>
                        <p class="counter text-black">[[${session.numbers?.shareNumber}]]</p>
                        <p class="para-text-w3ls">分享数量</p>
                    </div>
                </div>
                <div class="col-lg-3 col-6">
                    <div class="w3layouts_stats_left w3_counter_grid2">
                        <div class="stats-icon">
                            <span class="fa fa-users"></span>
                        </div>
                        <p class="counter">[[${session.numbers?.userNumber}]]</p>
                        <p class="para-text-w3ls">用户数量</p>
                    </div>
                </div>
                <div class="col-lg-3 col-6 mt-lg-0 mt-4">
                    <div class="w3layouts_stats_left w3_counter_grid1">
                        <div class="stats-icon">
                            <span class="fa fa-users"></span>
                        </div>
                        <p class="counter">[[${session.numbers?.activityNumber}]]</p>
                        <p class="para-text-w3ls">活动数量</p>
                    </div>
                </div>
                <div class="col-lg-3 col-6 mt-lg-0 mt-4">
                    <div class="w3layouts_stats_left w3_counter_grid1">
                        <div class="stats-icon">
                            <span class="fa fa-users"></span>
                        </div>
                        <p class="counter">[[${session.numbers?.guidanceNumber}]]</p>
                        <p class="para-text-w3ls">恋爱指导</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- //stats section -->

<!-- 其他服务-->
<section class="other_services py-5" id="why">
    <div class="container py-lg-5 py-3">
        <h3 class="heading mb-sm-5 mb-4">为什么选择我们 ？ </h3>
        <div class="row">
            <div class="col-lg-4 col-md-6">
                <div class="grid">
                    <img src="/static/images/b3.jpg" alt="" class="img-fluid" />
                    <div class="info p-4">
                        <h4 class="">大量用户</h4>
                        <p class="mt-3">我们平台有大量的优质用户，凭借高颜值、高素质的用户属性和操作简洁但功能丰富的产品体验，与与以滚雪球效应进入口碑—优质用户—更好口碑—更多优质用户的良性循环。...</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-4 col-md-6 mt-md-0 mt-4">
                <div class="grid">
                    <img src="/static/images/b4.jpg" alt="" class="img-fluid" />
                    <div class="info p-4">
                        <h4 class=""> 操作简单</h4>
                        <p class="mt-3">思绪在辗转之后又重生了一些平静，人们最期望和渴求的不过是一些最简单的感情。简单地就好像握着爱人的手，像握着自己温暖的手。简单的爱情，简约的生活，不需要纠葛。...</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-4 col-md-6 mt-lg-0 mt-4">
                <div class="grid">
                    <img src="/static/images/b5.jpg" alt="" class="img-fluid" />
                    <div class="info p-4">
                        <h4 class=""> 页面简洁 </h4>
                        <p class="mt-3">让心简约，无旁逸斜出，无繁冗奢华，却似无刻度的容器，恢宏如一座宫殿，四处充盈着丝竹的歌乐，每一个角落都洋溢着快乐的弹奏，万事由心，抛开名利，把不快乐的情绪拒心门之外...</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- //other services -->

<!-- testimonials -->
<section class="testimonials" id="testi">
    <div class="layer py-lg-5">
        <div class="container py-5">
            <h3 class="heading mb-sm-5 mb-4">客户评价</h3>
            <div class="text-center">
                <div class="row">
                    <div class="col-md-6">
                        <div class="testi-w3pvt-grid">
                            <p>
                                <span class="fa fa-quote-left"></span>
                                一辈子很短，我愿意和你将错就错!你是找感情的，我是找婚姻的!我们俩就走岔道了!幸福不一定在一起，倒霉一定在一起!婚姻怎么选都是错的，长久的婚姻就是将错就错!谁动感情谁完蛋!你的就是我的，我的还是我的!散买卖不散交情!
                                <span class="fa ml-2 fa-quote-right"></span>
                            </p>
                        </div>
                        <div class="testi-pos">
                            <img src="/static/images/ts1.jpg" alt="" class="img-fluid rounded-circle mb-3" />
                            <h4> John & Elisa </h4>
                        </div>
                    </div>
                    <div class="col-md-6 mt-md-0 mt-3">
                        <div class="testi-w3pvt-grid">
                            <p>
                                <span class="fa fa-quote-left"></span>
                                百合花里的语言，是共枕安眠的梦甜，玫瑰花上的浪漫，是天长地久的相伴，一对新人接受这幸福的洗礼，要携手向前，一个未来接受另一半的到来，要真心以对，新婚快乐。
                                <span class="fa ml-2 fa-quote-right"></span>
                            </p>
                        </div>
                        <div class="testi-pos">
                            <img src="/static/images/ts2.jpg" alt="" class="img-fluid rounded-circle mb-3" />
                            <h4>Watson & Mary</h4>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- //testimonials -->


<!-- Team  -->
<section class="team pt-5" id="couples">
    <div class="container py-lg-5">
        <h3 class="heading mb-sm-5 mb-4">幸福的情侣</h3>
        <div class="row">
            <div class="team-grid col-md-3 mb-5">
                <img src="/static/images/couple1.jpg" class="" alt="" />
                <div class="team-info text-center">
                    <h3 class="e">Tyson & Amery</h3>
                    <span class="">Love Couple</span>
                </div>
            </div>
            <div class="team-grid col-md-3 mb-5">
                <img src="/static/images/couple2.jpg" class="" alt="" />
                <div class="team-info text-center">
                    <h3 class="">Stas & Melnikov</h3>
                    <span class="">Love Couple</span>
                </div>
            </div>
            <div class="team-grid col-md-3 mb-5">
                <img src="/static/images/couple3.jpg" class="" alt="" />
                <div class="team-info text-center">
                    <h3 class="">Lise & Laurie</h3>
                    <span class="">Love Couple</span>
                </div>
            </div>
            <div class="team-grid col-md-3 mb-5">
                <img src="/static/images/couple4.jpg" class="" alt="" />
                <div class="team-info text-center">
                    <h3 class="">Effie & Eleanora</h3>
                    <span class="">Love Couple</span>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- //Team -->

<!-- footer -->
<footer>
    <div class="footer-layer py-sm-5 pt-5 pb-3">
        <div class="container py-md-3">
            <div class="footer-grid_section text-center">
                <div class="footer-title mb-3">
                    <a href="#"><span class="fa fa-gift"></span> Marriage</a>
                </div>
                <div class="footer-text">
                    <p>Blind date communication is zero distance, marriage service is 100%</p>
                    <p>相亲交流零距离，婚恋服务百分百</p>
                </div>
            </div>
        </div>

    </div>
</footer>
<!-- //footer -->

<!-- copyright -->
<section class="copyright">
    <div class="container py-4">
        <div class="row bottom">
            <ul class="col-lg-6 links p-0">
                <li><a href="#couples" class="">幸福的情侣 </a></li>
                <li><a href="#why" class="">为什么选择我们</a></li>
                <li><a href="#stats" class="">数据统计 </a></li>
                <li><a href="#services" class="">服务 </a></li>
            </ul>
            <div class="col-lg-6 copy-right p-0">
                <p class="">© 2022 Match Marriage All rights reserved | Design by
                    <a href="https://blog.csdn.net/qq_45839699?type=sub&subType=watch"> ZJ.</a>
                </p>
            </div>
        </div>
    </div>
</section>

<div class="move-top text-right">
    <a href="#home" class="move-top">
        <span class="fa fa-angle-up  mb-3" aria-hidden="true"></span>
    </a>
</div>
</body>
</html>
<script src="/static/js/jquery.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        var res;

        $("#loginName").blur(function () {
            let loginName = $("#loginName").val();
            if (loginName == "") {
                $("#tips").html('用户名不能为空！').css('color',"red");
                return false;
            }
            $.ajax({
                url:'findUserByLoginName',
                method:'post',
                async:false,
                data:{'loginName': loginName,},
                success:function (data) {
                    res=data;
                }
            });
            if (res==1){
                $("#tips").html('该名字太火，请换一个').css('color',"red");
                return false;
            }else {
                $("#tips").html('该名字可用').css('color',"green");
                return true;
            }
        });
        $("#registerBtn").click(function() {
            let loginName = $("#loginName").val();
            let loginPassword = $("#loginPassword").val();
            let userMail = $("#userMail").val();
            if (loginName == '' || loginPassword == '') {
                alert("用户名和密码不能为空！")
            }else {
                $.ajax({
                    url:'addUser',
                    method:'post',
                    async:false,
                    data:{'loginPassword': loginPassword, 'loginName': loginName,'userMail': userMail},
                    success:function (data) {
                        res=data;
                    }
                });
                if (res==0){
                    alert("注册失败，请重新尝试！");
                    return false;
                }else {
                    return true;
                }
            }
        })
    })
</script>